Skip to content

Conversation

@aditya0by0
Copy link
Member

@aditya0by0 aditya0by0 commented Dec 15, 2025

Fixes #137

@aditya0by0
Copy link
Member Author

aditya0by0 commented Dec 15, 2025

RDKIT behavior changed in latest version

raw_data = CC(=O)NC1CC1[Mg-2]

                mol = Chem.MolFromSmiles(raw_data.strip())
                if mol is not None:
                    raw_data = Chem.MolToSmiles(mol, canonical=True)

rdkit 2024.3.6 returns CC(=O)NC1CC1[Mg-2] (version on my local machine)
rdkit 2025.9.3 returns CC(=O)NC1C[CH]1[Mg-2] (latest version)

This is the reason causing failure of the test.

@sfluegel05
Do we need to pin the rdkit version (as per #83) or should we look for an upgrade ?

@aditya0by0
Copy link
Member Author

@sfluegel05, this PR is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ChemDataReader.read_data incorrectly accepts entire invalid strings with atleast one valid token

2 participants